package com.RedRiver.hospitalsystem.finance_service.client;

import com.RedRiver.hospitalsystem.finance_service.client.param.ChargeAllInfoClient;
import com.RedRiver.hospitalsystem.finance_service.client.param.ChargeFromClient;
import com.RedRiver.hospitalsystem.finance_service.client.param.ChargeRefundInfoClient;
import com.RedRiver.hospitalsystem.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;


@FeignClient(contextId = "DailyClient",name="finance-service",path="financeService/daily")
public interface DailyClient {
    @PostMapping("/chargeAll")
    Result<ChargeAllInfoClient> chargeAll(@RequestBody @Valid ChargeFromClient chargeFromClient);

    @PostMapping("/refundAll")
    Result<ChargeAllInfoClient> refundAll(@RequestBody @Valid ChargeFromClient chargeFromClient);

    @PostMapping("/riJieAll")
    Result<ChargeRefundInfoClient> riJieAll(@RequestBody @Valid ChargeFromClient chargeFromClient);
}
